#include"snake.h"
#define GET_PASS(vk) ((GetAsyncKeyState(vk)&0x1) ? 1 : 0)
void test()
{
	while (1) {
		if (GET_PASS(0X30)) printf("0\n");
		else if (GET_PASS(0X31)) printf("1\n");
		else if (GET_PASS(0X32)) printf("2\n");
		else if (GET_PASS(0X33)) printf("3\n");
		else if (GET_PASS(0X34)) printf("4\n");
		else if (GET_PASS(0X35)) printf("5\n");
		else if (GET_PASS(0X36)) printf("6\n");
		else if (GET_PASS(0X37)) printf("7\n");
		else if (GET_PASS(0X38)) printf("8\n");
		else if (GET_PASS(0X39)) printf("9\n");
	}
}
int main()
{
	//Setpos(20, 10);
	//printf("hehe\n");
	//Setpos(30, 15);
	//printf("haha\n");
	test();
	return 0;
}